package com.hjrpc.babyyamall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjrpc.babyyamall.member.exception.MobileExistsException;
import com.hjrpc.babyyamall.member.exception.UsernameExistsException;
import com.hjrpc.common.dto.MemberRegisterTo;
import com.hjrpc.common.dto.SocialUser;
import com.hjrpc.common.dto.UserLoginTo;
import com.hjrpc.common.utils.PageUtils;
import com.hjrpc.babyyamall.member.entity.MemberEntity;
import com.hjrpc.common.utils.R;

import java.util.Map;

/**
 * 会员
 *
 * @author hujian
 * @email 502361472@qq.com
 * @date 2021-08-07 13:03:49
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R register(MemberRegisterTo memberRegisterTo) throws MobileExistsException, UsernameExistsException;

    R login(UserLoginTo userLoginTo);

    R login(SocialUser socialUser);
}

